<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<script type="text/javascript" src="<%=basePath%>admin/js/user.js"></script>
  </head>
  
  <body>
  	<div id="tb">
  	<input id="getCompanyCombobox" name="companyCombobox" >
	</div>
   <div id="company_new_dialog" data-options="closed:true" style="text-align: center;" class="easyui-dialog" >
  	<form method="post" id="form_company" style="text-align: center;" >
  		<table   style="margin:auto">
  			<tr>
  				<td><label for="gname">公司名称:</label><input type="hidden" name="gid" value="0"/>
  		<input type="text" name="gname" class="easyui-validatebox" data-options="required:true,missingMessage:'不能为空!'"></td>
  				<td><label for="gfuzeren">负&nbsp;责&nbsp;人:</label>
  		<input type="text" name="gfuzeren" class="easyui-validatebox" data-options="required:true,missingMessage:'不能为空!'"></td>
  			</tr>
  			<tr>
  				<td><label for="gtelephone">手机号码:</label>
  		<input type="text" name="gtelephone"  id="gtelephone" class="easyui-validatebox" data-options="required:true,validType:'length[11,11]',missingMessage:'不能为空!',invalidMessage:'手机号码位数不正确!'"></td>
  				<td><label for="gemail">电子邮箱:</label>
  		<input type="text" name="gemail"  class="easyui-validatebox" data-options="required:true,validType:'email',missingMessage:'不能为空!',invalidMessage:'请输入正确的邮箱格式!'"></td>
  			</tr>
  			<tr>
  				<td><label for="gchuanzhen">传&nbsp;&nbsp;&nbsp;&nbsp;真:</label>
  		<input type="text" name="gchuanzhen"></td>
  				<td><label for="gQQ">Q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Q:</label>
  		<input type="text" name="gQQ"></td>
  			</tr>
  			<tr>
  				<td><label for="gyuming">公司网址:</label>
  		<input type="text" name="gyuming" class="easyui-validatebox" data-options="required:true,validType:'url',missingMessage:'不能为空!',invalidMessage:'请输入正确的url!'" value="http://"></td>
  				<td><label for="gaddress">公司地址:</label>
  		<input type="text" name="gaddress" class="easyui-validatebox" data-options="required:true,missingMessage:'不能为空!'"></td>
  			</tr>
<!--   			<tr> -->
<!--   				<td><label for="gtype">所属行业:</label> -->
<!--   		<input type="text" name="gtype"></td> -->
<!--   				<td><input type="button" value="生成公司密钥" ></input> </td> -->
<!--   			</tr> -->
  			<tr>
  				<td><label for="gstartTime">开始时间:</label>
  		<input type="text" name="gstartTime" id="gstartTime" class="easyui-datebox" data-options="editable:false,formatter:myformatter,parser:myparser,required:true,missingMessage:'不能为空!'"></td>
  				<td><label for="gendTime">结束时间:</label>
  		<input type="text" name="gendTime" id="gendTime" class="easyui-datebox" data-options="editable:false,formatter:myformatter,parser:myparser,required:true,missingMessage:'不能为空!'"></td>
  			</tr>
  			<tr>
  				<td>	<label for="gusername">用&nbsp;户&nbsp;名:</label>
  		<input type="text" name="gusername" id="gusername" readonly="readonly" class="easyui-validatebox" data-options="required:true,missingMessage:'不能为空,请点击生成密钥按钮生成按钮!'"></td>
  				<td><label for="gpassword">密&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
  		<input type="text" name="gpassword" id="gpassword" readonly="readonly" class="easyui-validatebox" data-options="required:true,missingMessage:'不能为空,请点击生成密钥按钮生成按钮!'"></td>
  			</tr>
  			<tr>
  				<td colspan="2" class="clearfix">
  				<label for="gcontent">公司简介:</label>
  		<textarea class="clearfix" name="gcontent" style="width:400px;height:60px"></textarea></td>
  			</tr>
  		</table>
  	</form>
  </div>
  </body>
</html>
